﻿using ORM.NHibernateDemo.Models;
using System;
using System.Collections.Generic;

namespace ORM.NHibernateDemo.DAL
{
    public interface IPerson
    {
        bool Insert(Person p);

        bool Delete(Person p);

        bool Update(Person p);

        bool Query(Predicate<Person> pred, out IList<Person> ps);

        bool Query(Predicate<Person> pred, out int count);
    }
}